# Maintainer: intothegnu <intothegnu@protonmail.com>

pkgname="qutewrowser-scripts-intothegnu-git"
pkgver=1.0.r2.g6925849
pkgrel=1
install="qutebrowser-scripts-intothegnu.install"
pkgdesc="Collection of scripts for Qutebrowser"
arch=('any')
groups=('intothegnu-config')
depends=('bzip2' 'imagemagick' 'qutebrowser' 'dmenu' 'pass')
license=('GPL')
url="https://notabug.org/BezierQuadratic/qutebrowser-scripts"
source=("git+https://notabug.org/BezierQuadratic/qutebrowser-scripts.git")
md5sums=('SKIP')

pkgver(){
	cd "qutebrowser-scripts"
	git describe --long --tags | sed 's/-/.r/;s/-/./'
}

package(){
	mkdir -p $pkgdir/usr/lib/qutebrowser/ITGC/plugins
	mkdir -p $pkgdir/usr/lib/qutebrowser/ITGC/userscripts
	install -m 644 $srcdir/qutebrowser-scripts/plugins/* $pkgdir/usr/lib/qutebrowser/ITGC/plugins
	install -m 755 $srcdir/qutebrowser-scripts/userscripts/* $pkgdir/usr/lib/qutebrowser/ITGC/userscripts
}

